package com.cskaoyan.controller.wx.feedback;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.wx.feedback.bo.WxFeedbackBo;
import com.cskaoyan.service.wx.WxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project-two
 * @description: 微信小程序的反馈的提交
 * @author: YuHui
 * @create: 2021-08-15 12:09
 **/
@RestController
@RequestMapping("wx/feedback")
public class WxFeedbackController {

    @Autowired
    WxFeedbackService wxFeedbackService;

    @RequestMapping("submit")
    public BaseRespVo submit(@RequestBody WxFeedbackBo wxFeedbackBo){
        wxFeedbackService.submit(wxFeedbackBo);
        return BaseRespVo.ok();
    }


}
